package com.hoshiicloud.goods.param.sku;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

import java.math.BigDecimal;

/**
* <p>
* 新增基础商品表SKU参数
* </p>
*
* @author zhangshuhu
* @since 2019-06-04
*/

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ApiModel(value="新增基础商品表SKU", description="新增基础商品表SKU")
public class BaseSkuAddParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "spuId")
    private Long spuId;
    
    @ApiModelProperty(value = "sku编号")
    private String skuNo;
    
    @ApiModelProperty(value = "条形码")
    private String barCode;
    
    @ApiModelProperty(value = "箱码")
    private String packetCode;
    
    @ApiModelProperty(value = "是否付库存")
    private Integer isStored;
    
    @ApiModelProperty(value = "属性")
    private String extendProperty;
    
    @ApiModelProperty(value = "规格")
    private String extendSpec;
    
    @ApiModelProperty(value = "sku商品标题")
    private String skuTitle;

    @ApiModelProperty(value = "创建人")
    private String createdBy;
    
    @ApiModelProperty(value = "状态  0-档案 1-已审批 2-下架")
    private Integer status;

    @ApiModelProperty(value = "销售单位")
    private String salesUnit;
    
    @ApiModelProperty(value = "包装单位")
    private String packetUnit;
    
    @ApiModelProperty(value = "商品重量")
    private BigDecimal weight;
    
    @ApiModelProperty(value = "采购策略  1-指定供应商 2-系统派单")
    private Integer strategy;
    
    @ApiModelProperty(value = "自己作为供应商  1-是 2-否")
    private Integer vendorSelf;
    
    @ApiModelProperty(value = "指定供应商ID")
    private Long vendorId;
    
    @ApiModelProperty(value = "1-库存足够 2-库存不够")
    private Integer stockEnough;

    @ApiModelProperty(value = "租户ID")
    private Long companyId;

    @ApiModelProperty(value = "平台ID")
    private Long platformId;

    @ApiModelProperty(value = "店铺ID")
    private Long storeId;
    
    @ApiModelProperty(value = "是否删除")
    private Integer deleted;

    @ApiModelProperty(value = "是否允许分销 0-不允许分销 1-允许分销")
    private Integer distributorStatu;

    @ApiModelProperty(value = "是否允许分店编辑售价 0-不允许 1-允许")
    private Integer editStatu;


    @ApiModelProperty(value = "最低售价（逻辑：允许编辑价格但不得低于最低售价）")
    private BigDecimal minimumPrice;

}
